-
Notifications
You must be signed in to change notification settings - Fork 58
[TECH] arrêter d'utiliser les champs userId / snappedAt (Pix-17286) #11965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TECH] arrêter d'utiliser les champs userId / snappedAt (Pix-17286) #11965
Conversation
de19255
to
fcaa381
Compare
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
c13c00c
to
77db09e
Compare
55c92c2
to
3f4bbd7
Compare
3f4bbd7
to
4d7f77a
Compare
snapshot, | ||
campaignParticipationId, | ||
} = {}) { | ||
const dateMinusOneDay = new Date(snappedAt.getTime() - 1000 * 60 * 60 * 24 * 7); | ||
userId = _.isUndefined(userId) ? buildUser().id : userId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: on peut conserver le userId pour la construction des knowledgeElement
createdAt, | ||
}); | ||
|
||
databaseBuilder.factory.buildKnowledgeElementSnapshot({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question : ce ke n'etait utilisé ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vu que dans le contexte général, on ne teste que le nom du fichier d'export, ça faisait sens de ne pas placer la création de ke ici (ils sont toujours construits dans les autres contextes).
'campaign-participations.sharedAt', | ||
); | ||
}) | ||
.select('campaign-participations.id', 'campaign-participations.userId', 'campaign-participations.sharedAt') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question Est ce qu'on a encore besoin de ce script (on pourrait le supprimer si il n'est plus utile)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je crois qu'on l'a laissé parce qu'il pourrait nous resservir
657bd57
to
8b5056f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tech review ok ✅ 🐕
if (!snapshot) { | ||
const knowledgeElements = []; | ||
knowledgeElements.push(buildKnowledgeElement({ userId, createdAt: dateMinusOneDay })); | ||
knowledgeElements.push(buildKnowledgeElement({ userId, createdAt: dateMinusOneDay })); | ||
userId = _.isUndefined(userId) ? buildUser().id : userId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought : avons nous besoin de lodash pour des questions de lisibilité ou est ce que l'écriture userId === undefined
pourrait répondre au besoin ?
@@ -1,6 +1,6 @@ | |||
import _ from 'lodash'; | |||
|
|||
import * as knowledgeElementSnapshotAPI from '../../../../../../src/prescription/campaign/application/api/knowledge-element-snapshots-api.js'; | |||
import * as knowledgeElementSnapshotAPI from '../../../../../../src/prescription/campaign/application/api/knowledge-element-snapshots-api.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: étonnant que cela ne titille pas le linter
…pation Co-Authored-By: alicegoarnisson <187311468+alicegoarnisson@users.noreply.github.com> Co-Authored-By: Xavier Carron <33637571+xav-car@users.noreply.github.com>
…ent-snapshots Co-Authored-By: alicegoarnisson <187311468+alicegoarnisson@users.noreply.github.com> Co-Authored-By: Xavier Carron <33637571+xav-car@users.noreply.github.com>
…pository Co-Authored-By: alicegoarnisson <187311468+alicegoarnisson@users.noreply.github.com> Co-Authored-By: Xavier Carron <33637571+xav-car@users.noreply.github.com> Co-Authored-By: Alexandre-Monney <101280231+Alexandre-Monney@users.noreply.github.com>
Co-authored-by: Théotime Berthod <theotime.berthod@pix.fr>
…pationId Co-authored-by: Théotime Berthod <theotime.berthod@pix.fr>
8b5056f
to
36b3db5
Compare
🌸 Problème
Dans le cadre de la mise en conformité des données, On souhaite remplacer l'utilisation des champs
userId
etsnappedAt
parcampaignParticipationId
.🌳 Proposition
On arrête de peupler et d'utiliser les champs
userId
etsnappedAt
🐝 Remarques
🤧 Pour tester
admin-orga@example.net
puis